package edu.hawaii.examschd;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * Class object stores data on retrieved classes
 * 
 * @author johnmacmillan
 */
public class myClass {
  String dept; // string in the form "ICS"
  int num; // number in the format "414"
  int crn;
  String days; // String in the format "MWF","TR","ONLINE"
  String desc; // String in the format "Software Engineering II"
  String inst; // String in the format "B. Auernheimer"
  Calendar start; // Calendar with class start time and start date
  Calendar end; // Calendar with class end time and end date
  Calendar exam; // Calendar with class exam date and time
  DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd'T'HHmmss");

  /**
   * Initialize the class
   */

  public myClass(String dept, int num, String days, int startTime, int endTime, Calendar exam) {
    this.dept = dept;
    this.num = num;
    this.days = days;
    this.exam = exam;

  }

  // GET METHODS

  /**
   * Return the department as a string
   * 
   * @return string representation of dept e.g. "ICS" or "JPN"
   */
  public String get_dept() {
    return dept;
  }

  /**
   * Return the class number as a int
   * 
   * @return int representation of class number, e.g. "414" or "311"
   */
  public int get_num() {
    return num;
  }

  /**
   * Return the class days as an int
   * 
   * @return
   */
  public String get_days() {
    return days;
  }

  public Calendar get_exam_cal() {
    return exam;
  }
}